home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / RealTime Graphics ActiveX / DATA.3 / Examples / CPP / Scroll / scrollx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-12-29  |  14.3 KB  |  335 lines

  1. #if !defined(AFX_SCROLLX_H__6182BB39_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  2. #define AFX_SCROLLX_H__6182BB39_8033_11D1_A956_00C0F6A06F60__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
  8.  
  9. // NOTE: Do not modify the contents of this file.  If this class is regenerated by
  10. //  Microsoft Visual C++, your modifications will be overwritten.
  11.  
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CScrollX wrapper class
  14.  
  15. class CScrollX : public CWnd
  16. {
  17. protected:
  18.     DECLARE_DYNCREATE(CScrollX)
  19. public:
  20.     CLSID const& GetClsid()
  21.     {
  22.         static CLSID const clsid
  23.             = { 0x7a0c53e6, 0xeb00, 0x11d0, { 0x80, 0x83, 0x0, 0xc0, 0xf6, 0xa0, 0x6f, 0x60 } };
  24.         return clsid;
  25.     }
  26.     virtual BOOL Create(LPCTSTR lpszClassName,
  27.         LPCTSTR lpszWindowName, DWORD dwStyle,
  28.         const RECT& rect,
  29.         CWnd* pParentWnd, UINT nID,
  30.         CCreateContext* pContext = NULL)
  31.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }
  32.  
  33.     BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
  34.         const RECT& rect, CWnd* pParentWnd, UINT nID,
  35.         CFile* pPersist = NULL, BOOL bStorage = FALSE,
  36.         BSTR bstrLicKey = NULL)
  37.     { return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
  38.         pPersist, bStorage, bstrLicKey); }
  39.  
  40. // Attributes
  41. public:
  42.     long GetPlotBackgroundColor();
  43.     void SetPlotBackgroundColor(long);
  44.     double GetLeftPlotArea();
  45.     void SetLeftPlotArea(double);
  46.     double GetRightPlotArea();
  47.     void SetRightPlotArea(double);
  48.     long GetMajorTickSize();
  49.     void SetMajorTickSize(long);
  50.     long GetMinorTickSize();
  51.     void SetMinorTickSize(long);
  52.     double GetBottomPlotArea();
  53.     void SetBottomPlotArea(double);
  54.     double GetTopPlotArea();
  55.     void SetTopPlotArea(double);
  56.     long GetCurrentPlot();
  57.     void SetCurrentPlot(long);
  58.     long GetCurrentAxis();
  59.     void SetCurrentAxis(long);
  60.     long GetWindowBorderColor();
  61.     void SetWindowBorderColor(long);
  62.     long GetWindowBackgroundColor();
  63.     void SetWindowBackgroundColor(long);
  64.     long GetWindowBorderStyle();
  65.     void SetWindowBorderStyle(long);
  66.     long GetWindowBorderThickness();
  67.     void SetWindowBorderThickness(long);
  68.     long GetWindowResizeMode();
  69.     void SetWindowResizeMode(long);
  70.     long GetPrintStyle();
  71.     void SetPrintStyle(long);
  72.     BOOL GetPrintBorder();
  73.     void SetPrintBorder(BOOL);
  74.     BOOL GetPrintMaintainAspectRatio();
  75.     void SetPrintMaintainAspectRatio(BOOL);
  76.     BOOL GetPrintPlotBackground();
  77.     void SetPrintPlotBackground(BOOL);
  78.     BOOL GetPrintGraphBackground();
  79.     void SetPrintGraphBackground(BOOL);
  80.     double GetPrintLeft();
  81.     void SetPrintLeft(double);
  82.     double GetPrintBottom();
  83.     void SetPrintBottom(double);
  84.     double GetPrintRight();
  85.     void SetPrintRight(double);
  86.     double GetPrintTop();
  87.     void SetPrintTop(double);
  88.     long GetSLegendType();
  89.     void SetSLegendType(long);
  90.     double GetSLegendTop();
  91.     void SetSLegendTop(double);
  92.     double GetSLegendBottom();
  93.     void SetSLegendBottom(double);
  94.     double GetSLegendLeft();
  95.     void SetSLegendLeft(double);
  96.     double GetSLegendRight();
  97.     void SetSLegendRight(double);
  98.     long GetSLegendBackgroundColor();
  99.     void SetSLegendBackgroundColor(long);
  100.     long GetSLegendBorderColor();
  101.     void SetSLegendBorderColor(long);
  102.     long GetSLegendBorderThickness();
  103.     void SetSLegendBorderThickness(long);
  104.     CString GetSLegendFont();
  105.     void SetSLegendFont(LPCTSTR);
  106.     long GetSLegendFontStyle();
  107.     void SetSLegendFontStyle(long);
  108.     long GetSLegendFontColor();
  109.     void SetSLegendFontColor(long);
  110.     BOOL GetSLegendEnable();
  111.     void SetSLegendEnable(BOOL);
  112.     CString GetSLegendStrings();
  113.     void SetSLegendStrings(LPCTSTR);
  114.     long GetSLegendFontSize();
  115.     void SetSLegendFontSize(long);
  116.     BOOL GetEnableInternalTimer();
  117.     void SetEnableInternalTimer(BOOL);
  118.     double GetTimerFrequency();
  119.     void SetTimerFrequency(double);
  120.     long GetSLegendOrientation();
  121.     void SetSLegendOrientation(long);
  122.  
  123. // Operations
  124. public:
  125.     double GetAxisMin(long axis);
  126.     void SetAxisMin(long axis, double newValue);
  127.     double GetAxisMax(short axis);
  128.     void SetAxisMax(short axis, double newValue);
  129.     BOOL GetScaleEnable(short axis);
  130.     void SetScaleEnable(short axis, BOOL bNewValue);
  131.     BOOL GetAxisEnable(short axis);
  132.     void SetAxisEnable(short axis, BOOL bNewValue);
  133.     BOOL GetAxisInterceptTrack(short axis);
  134.     void SetAxisInterceptTrack(short axis, BOOL bNewValue);
  135.     BOOL GetAxisLabelsEnable(short axis);
  136.     void SetAxisLabelsEnable(short axis, BOOL bNewValue);
  137.     long GetAxisScaleMode(short axis);
  138.     void SetAxisScaleMode(short axis, long nNewValue);
  139.     double GetAxisIntercept(short axis);
  140.     void SetAxisIntercept(short axis, double newValue);
  141.     long GetAxisColor(short axis);
  142.     void SetAxisColor(short axis, long nNewValue);
  143.     long GetAxisLineWidth(short axis);
  144.     void SetAxisLineWidth(short axis, long nNewValue);
  145.     long GetAxisMinorTicks(short axis);
  146.     void SetAxisMinorTicks(short axis, long nNewValue);
  147.     double GetAxisMajorTickInterval(short axis);
  148.     void SetAxisMajorTickInterval(short axis, double newValue);
  149.     long GetAxisTickStyle(short axis);
  150.     void SetAxisTickStyle(short axis, long nNewValue);
  151.     long GetAxisLabelPos(short axis);
  152.     void SetAxisLabelPos(short axis, long nNewValue);
  153.     long GetAxisLabelDecs(short axis);
  154.     void SetAxisLabelDecs(short axis, long nNewValue);
  155.     long GetAxisLabelColor(short axis);
  156.     void SetAxisLabelColor(short axis, long nNewValue);
  157.     CString GetAxisLabelFont(short axis);
  158.     void SetAxisLabelFont(short axis, LPCTSTR lpszNewValue);
  159.     long GetAxisLabelFontStyle(short axis);
  160.     void SetAxisLabelFontStyle(short axis, long nNewValue);
  161.     long GetAxisLabelFontSize(short axis);
  162.     void SetAxisLabelFontSize(short axis, long nNewValue);
  163.     long GetAxisNumericStyle(short axis);
  164.     void SetAxisNumericStyle(short axis, long nNewValue);
  165.     CString GetAxisTitleString(short axis);
  166.     void SetAxisTitleString(short axis, LPCTSTR lpszNewValue);
  167.     CString GetAxisTitleFont(short axis);
  168.     void SetAxisTitleFont(short axis, LPCTSTR lpszNewValue);
  169.     CString GetAxisLabelStrings(short axis);
  170.     void SetAxisLabelStrings(short axis, LPCTSTR lpszNewValue);
  171.     long GetNumAxisLabelStrings(short axis);
  172.     void SetNumAxisLabelStrings(short axis, long nNewValue);
  173.     BOOL GetAxisLabelStringsEnable(short axis);
  174.     void SetAxisLabelStringsEnable(short axis, BOOL bNewValue);
  175.     long GetAxisLabelStringsStart(short axis);
  176.     void SetAxisLabelStringsStart(short axis, long nNewValue);
  177.     long GetAxisTitleColor(short axis);
  178.     void SetAxisTitleColor(short axis, long nNewValue);
  179.     long GetAxisTitleFontStyle(short axis);
  180.     void SetAxisTitleFontStyle(short axis, long nNewValue);
  181.     long GetAxisTitleFontSize(short axis);
  182.     void SetAxisTitleFontSize(short axis, long nNewValue);
  183.     long GetAxisTitlePos(short axis);
  184.     void SetAxisTitlePos(short axis, long nNewValue);
  185.     BOOL GetAxisGridEnable(short axis);
  186.     void SetAxisGridEnable(short axis, BOOL bNewValue);
  187.     long GetAxisGridColor(short axis);
  188.     void SetAxisGridColor(short axis, long nNewValue);
  189.     long GetAxisGridLineWidth(short axis);
  190.     void SetAxisGridLineWidth(short axis, long nNewValue);
  191.     long GetAxisGridLineStyle(short axis);
  192.     void SetAxisGridLineStyle(short axis, long nNewValue);
  193.     long GetAxisGridType(short axis);
  194.     void SetAxisGridType(short axis, long nNewValue);
  195.     CString GetTitleString(short title);
  196.     void SetTitleString(short title, LPCTSTR lpszNewValue);
  197.     CString GetTitleFont(short title);
  198.     void SetTitleFont(short title, LPCTSTR lpszNewValue);
  199.     long GetTitleColor(short title);
  200.     void SetTitleColor(short title, long nNewValue);
  201.     long GetTitleFontStyle(short axis);
  202.     void SetTitleFontStyle(short axis, long nNewValue);
  203.     long GetTitleFontSize(short title);
  204.     void SetTitleFontSize(short title, long nNewValue);
  205.     long GetTitlePos(short title);
  206.     void SetTitlePos(short title, long nNewValue);
  207.     long GetSPlotType(short dataset);
  208.     void SetSPlotType(short dataset, long nNewValue);
  209.     long GetSPlotRefAxes(short dataset);
  210.     void SetSPlotRefAxes(short dataset, long nNewValue);
  211.     long GetSDataNumPlotPoints(short dataset);
  212.     void SetSDataNumPlotPoints(short dataset, long nNewValue);
  213.     CString GetSDataName(short dataset);
  214.     void SetSDataName(short dataset, LPCTSTR lpszNewValue);
  215.     BOOL GetSDataEnable(short dataset);
  216.     void SetSDataEnable(short dataset, BOOL bNewValue);
  217.     long GetSDataType(short dataset);
  218.     void SetSDataType(short dataset, long nNewValue);
  219.     long GetSDataNumGroups(short dataset);
  220.     void SetSDataNumGroups(short dataset, long nNewValue);
  221.     BOOL GetAxisAutoAxis(short axis);
  222.     void SetAxisAutoAxis(short axis, BOOL bNewValue);
  223.     void UpdateGraph();
  224.     double GetXDataValues(short dataset, long nIndex);
  225.     void SetXDataValues(short dataset, long nIndex, double newValue);
  226.     double GetYDataValues(short dataset, long nIndex, long nGroup);
  227.     void SetYDataValues(short dataset, long nIndex, long nGroup, double newValue);
  228.     BOOL SavePageMeta(long mftype, LPCTSTR filename);
  229.     long GetSDataXData(long index);
  230.     void SetSDataXData(long index, long nNewValue);
  231.     long GetGetSDataYData(long index);
  232.     void SetGetSDataYData(long index, long nNewValue);
  233.     void FFTDSPWindow(double* pRealData, double* pImData, long nNumDataPoints, long nWindowType);
  234.     void FFTComplexFFT(double* pRealData, double* pImData, long nNumDataPoints, BOOL bInverse);
  235.     void FFTRealFFT(double* pRealData, double* pImData, long nNumDataPoints, BOOL bInverse);
  236.     void FFTPowerSpectrum(double* pRealData, double* pImData, long nNumDataPoints, double rInterval);
  237.     double FFTMagnitude(double* pRealData, double* pImData, long nNumDataPoints, long index);
  238.     double FFTPhase(double* pRealData, double* pImData, long nNumDataPoints, long index);
  239.     double FFTFrequency(long nNumDataPoints, double rSampleFreq, long index);
  240.     long GetScrollStepMode(long dataset);
  241.     void SetScrollStepMode(long dataset, long nNewValue);
  242.     long GetScrollSweepLineColor(long dataset);
  243.     void SetScrollSweepLineColor(long dataset, long nNewValue);
  244.     double GetScrollRelReset(long dataset);
  245.     void SetScrollRelReset(long dataset, double newValue);
  246.     double GetScrollRelSize(long dataset);
  247.     void SetScrollRelSize(long dataset, double newValue);
  248.     double GetScrollSampleInterval(long dataset);
  249.     void SetScrollSampleInterval(long dataset, double newValue);
  250.     long GetScrollXYNumPoints(long dataset);
  251.     void SetScrollXYNumPoints(long dataset, long nNewValue);
  252.     BOOL GetScrollDirection(long dataset);
  253.     void SetScrollDirection(long dataset, BOOL bNewValue);
  254.     double GetScrollBarWidth(long dataset);
  255.     void SetScrollBarWidth(long dataset, double newValue);
  256.     long GetScrollLineColor(long dataset, long channel);
  257.     void SetScrollLineColor(long dataset, long channel, long nNewValue);
  258.     long GetScrollLineStyle(long dataset, long channel);
  259.     void SetScrollLineStyle(long dataset, long channel, long nNewValue);
  260.     long GetScrollLineThickness(long dataset, long channel);
  261.     void SetScrollLineThickness(long dataset, long channel, long nNewValue);
  262.     CString GetScrollTagName(long dataset, long channel);
  263.     void SetScrollTagName(long dataset, long channel, LPCTSTR lpszNewValue);
  264.     long GetScrollNormalAlarmColor(long dataset);
  265.     void SetScrollNormalAlarmColor(long dataset, long nNewValue);
  266.     long GetScrollLowAlarmColor(long dataset);
  267.     void SetScrollLowAlarmColor(long dataset, long nNewValue);
  268.     long GetScrollHighAlarmColor(long dataset);
  269.     void SetScrollHighAlarmColor(long dataset, long nNewValue);
  270.     long GetScrollLowLowAlarmColor(long dataset);
  271.     void SetScrollLowLowAlarmColor(long dataset, long nNewValue);
  272.     long GetScrollHighHighAlarmColor(long dataset);
  273.     void SetScrollHighHighAlarmColor(long dataset, long nNewValue);
  274.     BOOL GetScrollHighHighAlarmEnable(long dataset);
  275.     void SetScrollHighHighAlarmEnable(long dataset, BOOL bNewValue);
  276.     BOOL GetScrollHighAlarmEnable(long dataset);
  277.     void SetScrollHighAlarmEnable(long dataset, BOOL bNewValue);
  278.     BOOL GetScrollLowAlarmEnable(long dataset);
  279.     void SetScrollLowAlarmEnable(long dataset, BOOL bNewValue);
  280.     BOOL GetScrollLowLowAlarmEnable(long dataset);
  281.     void SetScrollLowLowAlarmEnable(long dataset, BOOL bNewValue);
  282.     BOOL GetScrollAlarmMarksEnable(long dataset);
  283.     void SetScrollAlarmMarksEnable(long dataset, BOOL bNewValue);
  284.     BOOL GetScrollSetpointEnable(long dataset);
  285.     void SetScrollSetpointEnable(long dataset, BOOL bNewValue);
  286.     double GetScrollHighHighAlarmValue(long dataset);
  287.     void SetScrollHighHighAlarmValue(long dataset, double newValue);
  288.     double GetScrollHighAlarmValue(long dataset);
  289.     void SetScrollHighAlarmValue(long dataset, double newValue);
  290.     double GetScrollLowLowAlarmValue(long dataset);
  291.     void SetScrollLowLowAlarmValue(long dataset, double newValue);
  292.     double GetScrollLowAlarmValue(short dataset);
  293.     void SetScrollLowAlarmValue(short dataset, double newValue);
  294.     double GetScrollSetpointValue(long dataset);
  295.     void SetScrollSetpointValue(long dataset, double newValue);
  296.     long GetAxisLabelTimeBase(long nAxis);
  297.     void SetAxisLabelTimeBase(long nAxis, long nNewValue);
  298.     BOOL GetAxisLabelAutoUpdate(long nAxis);
  299.     void SetAxisLabelAutoUpdate(long nAxis, BOOL bNewValue);
  300.     long GetAxisLabelStartHour(long nAxis);
  301.     void SetAxisLabelStartHour(long nAxis, long nNewValue);
  302.     long GetAxisLabelStartMin(long nAxis);
  303.     void SetAxisLabelStartMin(long nAxis, long nNewValue);
  304.     long GetAxisLabelStartSec(long nAxis);
  305.     void SetAxisLabelStartSec(long nAxis, long nNewValue);
  306.     BOOL SerializeLoadFile(LPCTSTR filename);
  307.     BOOL SerializeSaveFile(LPCTSTR filename);
  308.     long GetScrollAlarmUpdateMode(long dataset);
  309.     void SetScrollAlarmUpdateMode(long dataset, long nNewValue);
  310.     double GetScrollAlarmUpdatePeriod(long dataset);
  311.     void SetScrollAlarmUpdatePeriod(long dataset, double newValue);
  312.     BOOL GetScrollAlarmHorizontal(long dataset);
  313.     void SetScrollAlarmHorizontal(long dataset, BOOL bNewValue);
  314.     double GetAxisGridUpdatePeriod(long nAxis);
  315.     void SetAxisGridUpdatePeriod(long nAxis, double newValue);
  316.     long GetAxisGridUpdateMode(long nAxis);
  317.     void SetAxisGridUpdateMode(long nAxis, long nNewValue);
  318.     long GetScrollHistoryBufferSize(long nDataset);
  319.     void SetScrollHistoryBufferSize(long nDataset, long nNewValue);
  320.     void UpdateDynData(long nDataset, double* rNewValues);
  321.     void DefineDynDataset(long nDataset, LPCTSTR sName, long nNumTraces, long nHistBufferSize);
  322.     void PrintGraph();
  323.     void PrinterSetup();
  324.     BOOL GetSDataSimulationMode(long nDataset);
  325.     void SetSDataSimulationMode(long nDataset, BOOL bNewValue);
  326.     void ResetScroll(long nDataset);
  327.     BOOL CopyToClipboard();
  328.     void AboutBox();
  329. };
  330.  
  331. //{{AFX_INSERT_LOCATION}}
  332. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  333.  
  334. #endif // !defined(AFX_SCROLLX_H__6182BB39_8033_11D1_A956_00C0F6A06F60__INCLUDED_)
  335.